﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title></title>
		<meta charset="UTF-8"/>		
		<style type="text/css">
			body{
				text-align: left;
				-webkit-user-select: none;
				font-family: "微软雅黑";
				font-size: 29;								
				border: 0px;
				overflow: hidden;
				padding: 30px;
				line-height: 3;
				word-wrap: break-word;
				word-break:break-all;
			}			
			input{
				font-family: "微软雅黑";
				font-size: 29;	
			}
			.rightan{
				color: green;
			}
			.wrongan{
				text-decoration: line-through;
				color: red;
			}
			
							
		</style>
		<script language="JavaScript">
			function setfocus(){					
				arr=document.getElementsByTagName("input");
				if(arr.length > 0)
					arr[0].focus();
			}
			function checkall(){	
				var isRight=true;
				arr=document.getElementsByTagName("input");						
				for(i=0;i<arr.length;i++){					
					ans = arr[i].getAttribute("answer");					
					if(ans==arr[i].value){
						arr[i].className = "rightan";							
					}
					else{
						arr[i].className = "wrongan";	
						x=arr[i].offsetLeft;
						y=arr[i].offsetTop - 50;
						newdiv=document.createElement("div");
						newdiv.className = "rightan";
						document.body.appendChild(newdiv);
						newdiv.innerHTML = arr[i].getAttribute("answer");
						newdiv.style.left = x;
						newdiv.style.top = y;
						newdiv.style.position = "absolute";
						isRight=false;
					}
				}
				if(isRight)
					document.body.setAttribute("checkresult", "right");
				else
					document.body.setAttribute("checkresult", "wrong");
			}
		</script>
	</head>
	<body checkresult="wrong" >
			
	</body>
</html>
